package com.shuai.frame.fault.tolerate.impl;

import com.shuai.frame.fault.tolerate.TolerateStrategy;
import com.shuai.frame.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * Fail-Over 故障转移 -- 容错策略
 */

@Slf4j
public class FailOverTolerantStrategy implements TolerateStrategy {

    @Override
    public RpcResponse doTolerate(Map<String, Object> context, Exception e) {
        // todo 可自行扩展，获取其他服务节点并调用
        return null;
    }
}